package com.yinuo;

import javafx.application.Application;
import javafx.event.EventHandler;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;
import javafx.stage.WindowEvent;

import java.io.IOException;

public class FaceInput extends Application {

    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage primaryStage) throws IOException {
        Parent load = FXMLLoader.load(getClass().getResource("/fxml/faceInput.fxml"));
        primaryStage.setScene(new Scene(load));
        primaryStage.setTitle("人脸注册");
        primaryStage.getIcons().add(new Image("img/face.png"));
        primaryStage.show();
        primaryStage.setOnCloseRequest((e)->System.exit(1));
    }
}
